package com.bd.scm.dao.mapper.standardReports;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bd.scm.domain.dto.standardReports.*;
import com.bd.scm.domain.models.standardReports.BdRfGroupconsume;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 部门消费月报表（按天显示） Mapper 接口
 * </p>
 *
 * @author Mason
 * @since 2019-12-28
 */
public interface BdRfGroupconsumeMapper extends BaseMapper<BdRfGroupconsume> {
    /**
     * 获取部门月消费汇总报表（按天显示）.
     *
     * @param bdRfGroupconsumeSearchDto 条件
     * @return
     */
    IPage<BdRfGroupconsumeDto> getDeptMonthList(Page<BdRfGroupconsumeDto> page, BdRfGroupconsumeSearchDto
            bdRfGroupconsumeSearchDto);

    /**
     * 执行统计部门月消费存储过程.
     *
     * @param bdRfGroupconsumeSearchDto
     */
    void updateConsumeOnDept(@Param("ym") BdRfGroupconsumeSearchDto bdRfGroupconsumeSearchDto);

    /**
     * 获取成本中心集合.
     *
     * @return
     */
    List<CostCenterDto> getCostCenterList();

    /**
     * 获取部门月消费汇总报表（按天显示）.
     *
     * @param bdRfGroupconsumeSearchDto 条件
     * @return
     */
    IPage<CostCenterConsumeDto> getCostCenterMonthList(Page<CostCenterConsumeDto> page, BdRfGroupconsumeSearchDto
            bdRfGroupconsumeSearchDto);

    /**
     * 导出.
     * @param bdRfGroupconsumeSearchDto
     * @return
     */
    List<CbzxMonthExport> exportCbzxMonth(@Param("param2") BdRfGroupconsumeSearchDto bdRfGroupconsumeSearchDto);
    /** 导出.
     * @param bdRfGroupconsumeSearchDto
     * @return
             */
    List<DeptUserMonthExport> exportDeptUserMonth(@Param("param2") BdRfGroupconsumeSearchDto bdRfGroupconsumeSearchDto);
}
